/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const StaffRouterMap = {
  id: 112,
  path: '/personnel',
  component: Layout,
  name: '人事管理',
  redirect: '/personnel/personalInformation',
  meta: {title: '人事管理', icon: 'staff', power: 'personnel'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 113,
      path: 'staff',
      name: '员工列表',
      component: resolve => require(['@/views/personnel/staff/index'], resolve),
      meta: {title: '员工列表', icon: 'userlist', power: 'personnel.staff'},
      children: [
        {
          path: 'info',
          name: '员工信息',
          component: resolve => require(['@/views/personnel/staff/info'], resolve),
          meta: {title: '员工信息', power: 'personnel.staff.info'},
          hidden: true
        }, {
          path: 'modify',
          name: '员工信息编辑',
          component: resolve => require(['@/views/personnel/staff/modify'], resolve),
          meta: {title: '员工信息编辑', power: 'personnel.staff.modify'},
          hidden: true
        }
      ]
    }, {
      id: 119,
      path: 'personalInformation',
      name: '我的信息',
      component: resolve => require(['@/views/personnel/staff/info'], resolve),
      meta: {title: '我的信息', icon: 'userlist', power: 'personnel.personalInformation'}
    }, {
      id: 233,
      path: 'personalAttendance',
      name: '出勤打卡',
      component: resolve => require(['@/views/personnel/attendance/index'], resolve),
      meta: {title: '出勤打卡', icon: 'userlist', power: 'personnel.personalAttendance'}
    }, {
      id: 235,
      path: 'officeArticles',
      name: '办公物品',
      component: resolve => require(['@/views/personnel/officeArticles/index'], resolve),
      meta: {title: '办公物品', icon: 'userlist', power: 'personnel.officeArticles'}
    }, {
      id: 237,
      path: 'personalConfig',
      name: '基本配置',
      component: resolve => require(['@/views/personnel/config/index'], resolve),
      meta: {title: '基本配置', icon: 'userlist', power: 'personnel.config'}
    }
  ]
}

export default StaffRouterMap;
